﻿@model IEnumerable<Comisiones.Models.Local>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
<thead>
    <tr>
        <th>
            Comercio
        </th>
        <th>
            Local
        </th>
        <th>
            RUC del Local
        </th>
        <th></th>
    </tr>
</thead>
@foreach (var item in Model) {
    <tbody>
    <tr class = "dark">
        <td>
            @Html.DisplayFor(modelItem => item.comercio.com_nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.loc_nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.loc_RUC)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.loc_idLocal }) |
            @Html.ActionLink("Details", "Details", new { id=item.loc_idLocal }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.loc_idLocal })
        </td>
    </tr>
    </tbody>
}

</table>
